package com.odianyun.hello.service.impl;

import com.odianyun.db.query.PageVO;
import com.odianyun.hello.mapper.SoReturnItemMapper;
import com.odianyun.hello.service.SoReturnItemService;
    import com.odianyun.hello.model.PO.SoReturnItemPO;
import com.odianyun.hello.model.VO.SoReturnItemVO;
import com.odianyun.project.base.IEntity;
import com.odianyun.project.query.PageQueryArgs;
import com.odianyun.project.query.QueryArgs;
import com.odianyun.project.support.base.service.OdyEntityService;
import java.util.*;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class SoReturnItemServiceImpl extends OdyEntityService<SoReturnItemPO, SoReturnItemVO, PageQueryArgs, QueryArgs, SoReturnItemMapper> implements SoReturnItemService {
    @Resource
    private SoReturnItemMapper mapper;

    @Override
    protected SoReturnItemMapper getMapper() {
        return mapper;
    }

    @Override
	protected void afterListPage(PageVO<? extends IEntity> pageVO) {
	    for (IEntity entity : pageVO.getList()) {
	        SoReturnItemVO vo = (SoReturnItemVO) entity;
            vo.setReturnId(0L);
            vo.setOrderCode("orderCode");
	    }
	}



}
